import importlib


def get_function(path):
    module_path, func_name = path.rsplit('.', maxsplit=1)
    return getattr(importlib.import_module(module_path), func_name)


if __name__ == "__main__":
    print(getattr(importlib.import_module('celery_tasks.task'), ''))
